package temp;

import com.hanhai.zrb.model.project.enums.ProjectStatusEnums;



public enum InfoLabelEnums {
	ICONMANAGE("0","标签管理"),  //标签类别 0：资讯标签  1：项目标签   这里标签管理对应后台的标签管理菜单
	PROJECTICON("1","项目标签"),
	;
	
	private String code;
	private String value;
	public String getCode() {
		return code;
	}

	public String getValue() {
		return value;
	}

	
	private InfoLabelEnums(String code,String value){
		this.code = code;
		this.value = value;
	}
	
	public static String  getValueByCode(String code){
		for(InfoLabelEnums status:InfoLabelEnums.values()){
			if(status.getCode().equals(code)){
				return status.getValue();
			}
		}
		return null;
	}
	
	public static ProjectStatusEnums getByCode(int code){
		for(ProjectStatusEnums status:ProjectStatusEnums.values()){
			if(status.getCode() == code){
				return status;
			}
		}
		return null;
	}
	public static void main(String[] args) {

		for(ProjectStatusEnums status :ProjectStatusEnums.values()){
			System.out.println("code="+status.getCode()+ " values = "+status.getValue());
		}
	}
}
